package com.linwen.javase.desgin_pattern.create.factory;

import com.linwen.javase.desgin_pattern.create.factory.abstract_factory.HWAbstractFactory;
import com.linwen.javase.desgin_pattern.create.factory.abstract_factory.Phone;
import com.linwen.javase.desgin_pattern.create.factory.abstract_factory.Table;

/**
 * @ClassName ClientTest
 * @Description
 * @Author lin
 * @Date 2022/6/12 下午11:36
 * @Version V1.0
 */
public class ClientTest {
    public static void main(String[] args) {
        // BYD byd = new BYD();
        // Car byd = SimpleCarFactory.getCar("比亚迪");
        // BYD byd = new BYDFactory().getCar();
        HWAbstractFactory hwAbstractFactory = new HWAbstractFactory();
        Phone phone = hwAbstractFactory.getPhone();
        Table table = hwAbstractFactory.getTable();
        System.out.println(phone);
        System.out.println(table);

    }
}
